<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('主子表提交')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="gray-bg">
    <div class="main-content">
        <form id="form-add" class="form-horizontal" th:object="${jjyhOrder}">
            <input name="id" th:field="*{id}" type="hidden">
            <input name="deptId" type="hidden" id="treeId" />
            <h4 class="form-header h4">订单信息</h4>
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-xs-2 control-label">订单编号：</label>
                        <div class="col-xs-10">
                            <input name="userInName" th:field="*{orderNo}"  class="form-control" type="text">
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
            	<div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">换入用户：</label>
                        <div class="col-sm-8">
                            <input name="userInName" th:field="*{userInName}"  class="form-control" type="text">
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">换出用户：</label>
                        <div class="col-sm-8">
                            <input name="userInName" th:field="*{userOutName}"  class="form-control" type="text">
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">换入产品物流单号：</label>
                        <div class="col-sm-8">
                            <input name="userInName" th:field="*{changeIntrackno}"  class="form-control" type="text">
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">换出产品物流单号：</label>
                        <div class="col-sm-8">
                            <input name="userInName" th:field="*{changeOuttrackno}"  class="form-control" type="text">
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">换入物流公司名称：</label>
                        <div class="col-sm-8">
                            <input name="userInName" th:field="*{changeIntrackname}"  class="form-control" type="text">
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">换入物流公司名称：</label>
                        <div class="col-sm-8">
                            <input name="userInName" th:field="*{changeOuttrackname}"  class="form-control" type="text">
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">换入保证金状态：</label>
                        <div class="col-sm-8">
                            <input name="userInName" th:field="*{changeInstatusName}"  class="form-control" type="text">
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">换出保证金状态：</label>
                        <div class="col-sm-8">
                            <input name="userInName" th:field="*{changeOutstatusName}"  class="form-control" type="text">
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">换入订单保证金：</label>
                        <div class="col-sm-8">
                            <input name="userInName" th:field="*{securityInmoney}"  class="form-control" type="text">
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">换出订单保证金：</label>
                        <div class="col-sm-8">
                            <input name="userInName" th:field="*{securityOutmoney}"  class="form-control" type="text">
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">换入订单状态：</label>
                        <div class="col-sm-8">
                            <input name="userInName" th:field="*{instatusName}"  class="form-control" type="text">
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">换出订单状态：</label>
                        <div class="col-sm-8">
                            <input name="userInName" th:field="*{outstatusName}"  class="form-control" type="text">
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">换入收货地址：</label>
                        <div class="col-sm-8">
                            <input name="userInName" th:field="*{orderInaddress}"  class="form-control" type="text">
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">换出收货地址：</label>
                        <div class="col-sm-8">
                            <input name="userInName" th:field="*{orderOutaddress}"  class="form-control" type="text">
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">换入手机号：</label>
                        <div class="col-sm-8">
                            <input name="userInName" th:field="*{orderInphone}"  class="form-control" type="text">
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">换出手机号：</label>
                        <div class="col-sm-8">
                            <input name="userInName" th:field="*{orderOutphone}"  class="form-control" type="text">
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">换入收货人：</label>
                        <div class="col-sm-8">
                            <input name="userInName" th:field="*{orderInname}"  class="form-control" type="text">
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label">换出收货人：</label>
                        <div class="col-sm-8">
                            <input name="userInName" th:field="*{orderOutname}"  class="form-control" type="text">
                        </div>
                    </div>
                </div>
            </div>

            <h4 class="form-header h4" style="margin:8px 10px 0px 10px;">商品数据</h4>
            <!--<div class="row">
                <div class="col-sm-12">
                    <button type="button" class="btn btn-white btn-sm" onclick="addColumn()"><i class="fa fa-plus"> 增加</i></button>
                    <button type="button" class="btn btn-white btn-sm" onclick="sub.delColumn()"><i class="fa fa-minus"> 删除</i></button>
                    <div class="col-sm-12 select-table table-striped">
					    <table id="bootstrap-table"></table>
					</div>
                </div>
            </div>-->
        </form>
    </div>

    <div class="col-sm-12 select-table table-striped">
        <table id="bootstrap-table"></table>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
	<script th:inline="javascript">
        var prefix = ctx + "jjyh/order";
        $(function() {
            var options = {
                url: prefix + "/listChild",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                showSearch: false,
                showRefresh: false,
                showToggle: false,
                showColumns: false,
                modalName: "订单商品表",
                queryParams : {
                    orderId: $("#id").val()
                },
                columns: [{
                    checkbox: true
                },
                    {
                        field: 'goodsTitle',
                        title: '商品'
                    },
                    {
                        field: 'price',
                        title: '价格'
                    },
                    {
                        field: 'num',
                        title: '数量'
                    },
                    {
                        field: 'type',
                        title: '类型'
                    },
                    {
                        field: 'userName',
                        title: '商品归属人'
                    },{
                        field: 'createTime',
                        title: '生成时间'
                    }]
            };
            $.table.init(options);
        });

    </script>
</body>
</html>